package operator;

public class ReverseDemo {

    public static void main(String[] args) {
        int[] arr = {23, 14, 56, 9, 10, 7, 33, 47, 21, 20, 18, 17, 55, 63};

        for (int i = 0; i < arr.length / 2; i++) {
            int temp;
            temp = arr[i];
            arr[i] = arr[arr.length - 1 - i];
            arr[arr.length - 1 - i] = temp;
        }

        System.out.println("-----------反转之后-----------");
        for (int n : arr) {
            System.out.print(n + " ");
        }

    }
}
